package org.star.dolphin.domain;

import lombok.Data;

@Data
public class WebSocketMessage {

    private String sender;

    private String senderName;

    private String recipient;

    private String title;

    private String content;

    private Long sendingTime;

    private String type;

    private Long chatMessageId;

    private String secret;

    private Boolean msgState;

    public WebSocketMessage() {
    }

    public WebSocketMessage(String secret) {
        this.secret = secret;
    }

    public WebSocketMessage(String senderName, String recipient, String content, Long sendingTime, Boolean msgState) {
        this.senderName = senderName;
        this.recipient = recipient;
        this.content = content;
        this.sendingTime = sendingTime;
        this.msgState = msgState;
    }
}
